package sch.frog.creational.prototype.model;

public class ObjA implements Cloneable{

    private int a;

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    @Override
    public String toString() {
        return "ObjA{" +
                "a=" + a +
                '}';
    }

    @Override
    public ObjA clone(){
        try {
            return (ObjA) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }


}
